package com.yb.mini.store.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yangbiao
 * @date: 2024/03/13
 */
@RestController
@RequiredArgsConstructor
public class StoreController {

    @GetMapping("/store/{name}")
    public Object store(@PathVariable String name) {
        return "Hello @ ".concat(name);
    }

    @GetMapping("/yb/store/{name}")
    public Object store2(@PathVariable String name) {
        return "Hello &  ".concat(name);
    }

    @GetMapping("/mini-store/store/{name}")
    public Object store3(@PathVariable String name) {
        return "Hello #  ".concat(name);
    }

    @GetMapping("/yb/mini-store/store/{name}")
    public Object store4(@PathVariable String name) {
        return "Hello %  ".concat(name);
    }

}
